package com.mm.api.client;

import com.mm.common.domain.dto.UserDTO;
import com.mm.common.domain.po.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @BelongsProject: 8.mindmap
 * @BelongsPackage: com.mm.api.client
 * @Author : 游在海里的鱼
 * @CreateTime : 2024-05-16  22:11
 * @Version : 1.0
 * @ClassName : TODO
 * @Description : TODO
 */
@FeignClient("user-server")
public interface UserClient {
    @GetMapping("/user/info")
    Result<UserDTO> userInfo(@RequestParam("id") Long id);
}
